/**
 * 
 * 广州锐鹏计算机科技有限公司（www.ruipengkj.com）
 * 
 * 
 * Copyright (c) 2011-2012 RUIPENGKJ.Co.Ltd. All rights reserved.
 * 
 * */
package com.ruipengkj.bean;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * 说明：
 * Entity Name 地址表
 * @Author：李智深
 * @Date：2012-03-14
 */
@Entity
@Table(name="ruipeng_tb_TSendInfo")
public class TSendInfo implements Serializable{

	private static final long serialVersionUID = 1L;

	private String SendInfoID;//配送地址编号CHAR(15)PK
	
	private String Contact;//联系人VARCHAR(30)
	
	private String Phone;//联系电话
	
	private String Location;//联系地址VARCHAR(256)
	
	private String PostCode;//邮编VARCHAR(20)
	
	private String Province;//省CHAR(15)
	
	private String City;//市
	
	private String Region;//区
	
	private String Mobile;//移动电话VARCHAR(30)
	
	private byte Type;// 地址类型TINYINT
	
	private String Street;//CHAR(15)
	
	private String Building;// 楼宇VARCHAR(128)
	
	private int Priority;//优先级INTEGER
	
	private double Longitude;//经度DECIMAL(20,15)
	
	private double Latitude;//纬度
	
	private byte Confirmed;//是否认证TINYINT
	
	private int BuyCount;//交易次数INTEGER
	
	private TUser TUser;//用户
	
	private Set<TOrder> TOrders=new HashSet<TOrder>(0);//订单

	@Id
	@Column(name = "SendInfoID", length=15)
	public String getSendInfoID() {
		return SendInfoID;
	}

	public void setSendInfoID(String sendInfoID) {
		SendInfoID = sendInfoID;
	}

	@Column(name = "Contact", length=30)
	public String getContact() {
		return Contact;
	}

	public void setContact(String contact) {
		Contact = contact;
	}

	@Column(name = "Phone", length=30)
	public String getPhone() {
		return Phone;
	}

	public void setPhone(String phone) {
		Phone = phone;
	}

	@Column(name = "Location", length=256)
	public String getLocation() {
		return Location;
	}

	public void setLocation(String location) {
		Location = location;
	}

	@Column(name = "PostCode", length=20)
	public String getPostCode() {
		return PostCode;
	}

	public void setPostCode(String postCode) {
		PostCode = postCode;
	}

	@Column(name = "Province", length=15)
	public String getProvince() {
		return Province;
	}

	public void setProvince(String province) {
		Province = province;
	}

	@Column(name = "City", length=15)
	public String getCity() {
		return City;
	}

	public void setCity(String city) {
		City = city;
	}

	@Column(name = "Region", length=15)
	public String getRegion() {
		return Region;
	}

	public void setRegion(String region) {
		Region = region;
	}

	@Column(name = "Mobile", length=30)
	public String getMobile() {
		return Mobile;
	}

	public void setMobile(String mobile) {
		Mobile = mobile;
	}

	@Column(name = "Type")
	public byte getType() {
		return Type;
	}

	public void setType(byte type) {
		Type = type;
	}

	@Column(name = "Street", length=15)
	public String getStreet() {
		return Street;
	}

	public void setStreet(String street) {
		Street = street;
	}

	@Column(name = "Building", length=128)
	public String getBuilding() {
		return Building;
	}

	public void setBuilding(String building) {
		Building = building;
	}

	@Column(name = "Priority")
	public int getPriority() {
		return Priority;
	}

	public void setPriority(int priority) {
		Priority = priority;
	}

	@Column(name = "Longitude", precision = 20, scale = 15)
	public double getLongitude() {
		return Longitude;
	}

	public void setLongitude(double longitude) {
		Longitude = longitude;
	}

	@Column(name = "Latitude", precision = 20, scale = 15)
	public double getLatitude() {
		return Latitude;
	}

	public void setLatitude(double latitude) {
		Latitude = latitude;
	}

	@Column(name = "Confirmed")
	public byte getConfirmed() {
		return Confirmed;
	}

	public void setConfirmed(byte confirmed) {
		Confirmed = confirmed;
	}

	@Column(name = "BuyCount")
	public int getBuyCount() {
		return BuyCount;
	}

	public void setBuyCount(int buyCount) {
		BuyCount = buyCount;
	}
	@ManyToOne
	@JoinColumn(name="UserID")
	public TUser getTUser() {
		return TUser;
	}

	public void setTUser(TUser tUser) {
		TUser = tUser;
	}
	@OneToMany(mappedBy="TSendInfo")
	@JoinColumn(name="SendInfoID")
	public Set<TOrder> getTOrders() {
		return TOrders;
	}

	public void setTOrders(Set<TOrder> tOrders) {
		TOrders = tOrders;
	}
	
}
